﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PROD_WORKCENTERS
// * CreateDate    : 2013-02-19 16:50:53
// * Creater       : CodeSmith
// * LastChangeDate: 2013-02-19 16:50:53
// * LastChanger   : 2013-02-19 16:50:53
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class ProdWorkcentersTable : TableInfo
    {
        public const string C_TableName = "PROD_WORKCENTERS";

        public const string C_CODE = "CODE";
        public const string C_NAME = "NAME";
        public const string C_TYPE = "TYPE";
        public const string C_WORKING_PERIOD = "WORKING_PERIOD";
        public const string C_ACTIVE = "ACTIVE";
        public const string C_EFFICIENCY_FACTOR = "EFFICIENCY_FACTOR";
        public const string C_CAPACITY_CYCLE = "CAPACITY_CYCLE";
        public const string C_TIME_CYCLE = "TIME_CYCLE";
        public const string C_TIME_BEFORE_PROD = "TIME_BEFORE_PROD";
        public const string C_TIME_AFTER_PROD = "TIME_AFTER_PROD";
        public const string C_PRODUCT_ID = "PRODUCT_ID";
        public const string C_COST_HOUR = "COST_HOUR";
        public const string C_COST_CYCLE = "COST_CYCLE";

        public ProdWorkcentersTable()
        {
            _tableName = "PROD_WORKCENTERS";
        }

        protected static ProdWorkcentersTable _current;
        public static ProdWorkcentersTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new ProdWorkcentersTable();

            _current.Add(C_CODE, new ColumnInfo(C_CODE, "Code", true, typeof(string)));
            _current.Add(C_NAME, new ColumnInfo(C_NAME, "Name", false, typeof(string)));
            _current.Add(C_TYPE, new ColumnInfo(C_TYPE, "Type", false, typeof(int)));
            _current.Add(C_WORKING_PERIOD, new ColumnInfo(C_WORKING_PERIOD, "WorkingPeriod", false, typeof(decimal)));
            _current.Add(C_ACTIVE, new ColumnInfo(C_ACTIVE, "Active", false, typeof(int)));
            _current.Add(C_EFFICIENCY_FACTOR, new ColumnInfo(C_EFFICIENCY_FACTOR, "EfficiencyFactor", false, typeof(decimal)));
            _current.Add(C_CAPACITY_CYCLE, new ColumnInfo(C_CAPACITY_CYCLE, "CapacityCycle", false, typeof(decimal)));
            _current.Add(C_TIME_CYCLE, new ColumnInfo(C_TIME_CYCLE, "TimeCycle", false, typeof(decimal)));
            _current.Add(C_TIME_BEFORE_PROD, new ColumnInfo(C_TIME_BEFORE_PROD, "TimeBeforeProd", false, typeof(decimal)));
            _current.Add(C_TIME_AFTER_PROD, new ColumnInfo(C_TIME_AFTER_PROD, "TimeAfterProd", false, typeof(decimal)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID, "ProductId", false, typeof(string)));
            _current.Add(C_COST_HOUR, new ColumnInfo(C_COST_HOUR, "CostHour", false, typeof(decimal)));
            _current.Add(C_COST_CYCLE, new ColumnInfo(C_COST_CYCLE, "CostCycle", false, typeof(decimal)));

        }

        public ColumnInfo CODE
        {
            get { return this[C_CODE]; }
        }

        public ColumnInfo NAME
        {
            get { return this[C_NAME]; }
        }

        public ColumnInfo TYPE
        {
            get { return this[C_TYPE]; }
        }

        public ColumnInfo WORKING_PERIOD
        {
            get { return this[C_WORKING_PERIOD]; }
        }

        public ColumnInfo ACTIVE
        {
            get { return this[C_ACTIVE]; }
        }

        public ColumnInfo EFFICIENCY_FACTOR
        {
            get { return this[C_EFFICIENCY_FACTOR]; }
        }

        public ColumnInfo CAPACITY_CYCLE
        {
            get { return this[C_CAPACITY_CYCLE]; }
        }

        public ColumnInfo TIME_CYCLE
        {
            get { return this[C_TIME_CYCLE]; }
        }

        public ColumnInfo TIME_BEFORE_PROD
        {
            get { return this[C_TIME_BEFORE_PROD]; }
        }

        public ColumnInfo TIME_AFTER_PROD
        {
            get { return this[C_TIME_AFTER_PROD]; }
        }

        public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }

        public ColumnInfo COST_HOUR
        {
            get { return this[C_COST_HOUR]; }
        }

        public ColumnInfo COST_CYCLE
        {
            get { return this[C_COST_CYCLE]; }
        }



    }
}
